package com.qf.controller;

import com.qf.entity.Img;
import com.qf.service.ImgService;
import com.qf.service.impl.ImgServiceImpl;

import com.qfedu.vo.ResultVo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Img)表控制层
 *
 * @author makejava
 * @since 2020-07-03 08:45:13
 */
@RestController
@RequestMapping("img")
public class ImgController {
    /**
     * 服务对象
     */
    @Resource
    private ImgServiceImpl imgService;




    @RequestMapping("/getRoomImgUrlByRid/{rid}")
    public ResultVo getRoomImgUrlByRid(@PathVariable("rid") Integer rid) {
        return imgService.getRoomImgUrlByRid(rid);
    }

   
    @RequestMapping("/getUserImgUrlByImgId/{imgId}")
    public ResultVo getgetRoomImgUrlByImgId(@PathVariable("imgId") Integer imgId){
       return imgService.queryById(imgId);
    }

}